# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apache-mod-auth-ntlm-winbind
pkgver=0.1
pkgrel=9
pkgdesc="Authentication module for Apache using NTLM protocol with winbind helper"
url="http://samba.org/ftp/unpacked/lorikeet/mod_auth_ntlm_winbind/"
arch="all"
license="Apache-2.0"
depends="apache2 samba samba-winbind"
makedepends="autoconf apache2-dev apr-util-dev apr-dev"
source="http://samba.org/ftp/unpacked/lorikeet/mod_auth_ntlm_winbind/mod_auth_ntlm_winbind.c
	http://samba.org/ftp/unpacked/lorikeet/mod_auth_ntlm_winbind/configure.in
	http://samba.org/ftp/unpacked/lorikeet/mod_auth_ntlm_winbind/Makefile.in
	mod-auth-ntlm-winbind.conf
	"
builddir="$srcdir"
options="!check"

build() {
	autoconf
	./configure
	make DESTDIR="$pkgdir"
}

package() {
	mkdir -p "$pkgdir"/etc/apache2/conf.d
	mkdir -p "$pkgdir"/usr/lib/apache2
	install mod-auth-ntlm-winbind.conf "$pkgdir"/etc/apache2/conf.d/mod-auth-ntlm-winbind.conf
	install "$srcdir"/.libs/mod_auth_ntlm_winbind.so "$pkgdir"/usr/lib/apache2/mod_auth_ntlm_winbind.so
}

sha512sums="098312c16a3ad546b44f7025181526486aa91880e7b6f815f7610fba17c7be2c6a41f6a1882b01bdd23f7f06957884d716920abca7f7e96ff4e76ccd82d7e8de  mod_auth_ntlm_winbind.c
3aca2e21aa01d33449c55eec996735cc7eb80695a22e0979d5c9201b89b618a8133379cf633666b88c931805823fcb9c603e6606a7591058a96e2dae5a6ce10d  configure.in
9dfde80a35b53f32b85ba334fa86da8e397ab6fdca499da511dbe79daeeec148bdf651eaa79a9f8c54315c4f77e4ed0ce9fd142ee85214a4d4013798ed4fe755  Makefile.in
d443b625d8459b218742d4db639883c7d14c1f38c879904b73c2a1b80e5eaa6cf6adf7a775e644f4d691351c0ddc17ecc4dd74a4cd82f340427ef7a92ab50ff1  mod-auth-ntlm-winbind.conf"
